package edu.ynu.se.xiecheng.achitectureclass.project.dao;

import edu.ynu.se.xiecheng.achitectureclass.common.dao.LogicDAO;
import edu.ynu.se.xiecheng.achitectureclass.project.po.entity.AirTemperatureData;
import edu.ynu.se.xiecheng.achitectureclass.project.po.entity.SoilTemperatureData;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SoilTemperatureDataDAO extends LogicDAO<SoilTemperatureData, Long> {
    List<SoilTemperatureData> findTop7ByOrderByTimestampDesc();

    SoilTemperatureData findFirstByOrderByTimestampDesc();
}
